package com.example.mvplogin.utils;

import android.app.Dialog;
import android.content.Context;

import com.example.mvplogin.R;

public class DialogUtils
{
   public static DialogUtils dialogUtils = new DialogUtils();
    Dialog dialog;
    public void  show(Context context){
        cancel();
        dialog = new Dialog(context);
        dialog.setContentView(R.layout.dialog_loading);
        dialog.show();
    }


    public void cancel(){
        if(dialog!=null)
        dialog.cancel();
    }
}
